﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Bullet : MonoBehaviour
{
    private float mMoveSpeed = 100;
    private float mHurt = 1;

    private void Start()
    {
        Destroy(this.gameObject, 10.0f);
    }

    private void Update()
    {
        this.transform.Translate(Vector3.right * Time.deltaTime * mMoveSpeed);
    }

    public void Explosion()
    {
        this.transform.GetChild(0).GetComponent<Image>().enabled = true;
    }
}
